using System.Collections;
using System.Collections.Generic;using OfficeOpenXml.FormulaParsing.Excel.Functions.Math;
using OfficeOpenXml.FormulaParsing.Excel.Functions.Text;
using Sirenix.OdinInspector;
using UnityEditor;
using UnityEngine;

public abstract class BearScriptableObject : SerializedScriptableObject
{
    public virtual string DefaultPath
    {
        get => "";
    }

    protected static void generate<T>() where T: BearScriptableObject
    {
        var instance = ScriptableObject.CreateInstance<T>();
        if (AssetDatabase.LoadAssetAtPath<T>(instance.DefaultPath) != null)
            return;
        
        AssetDatabase.CreateAsset(instance, instance.DefaultPath);
        AssetDatabase.Refresh();
    }
}
